package com.devnulled.shoutboard.services.message.to;

import org.joda.time.DateTime;


public class DefaultShoutboardMessageImpl implements ShoutboardMessage
{
	private static final long serialVersionUID = 1L;
	private String userName = null;
	private String message = null;
	private DateTime timestamp = null;

	public DefaultShoutboardMessageImpl(String message)
	{
		this(message, "Anonymous");
	}

	public DefaultShoutboardMessageImpl(String username, String message)
	{
		this.message = message;
		this.userName = username;
		this.timestamp = new DateTime();
	}

	public String getUserName()
	{
		return userName;
	}

	public void setUserName(String userName)
	{
		this.userName = userName;
	}

	public String getMessage()
	{
		return message;
	}

	public void setMessage(String message)
	{
		this.message = message;
	}

	public DateTime getTimestamp()
	{
		return timestamp;
	}

	public void setTimestamp(DateTime timestamp)
	{
		this.timestamp = timestamp;
	}

}
